package com.inter.controller;

import com.inter.my.MyLog;
import com.inter.my.YinXing;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.lang.annotation.Retention;
import java.util.Map;

/**
 * @author yinxing
 * @date 2022-09-08
 */
@RestController
@Slf4j
public class UserController {

    @YinXing()
    @RequestMapping("/ok")
    public Object ok(@RequestBody Map<String, String> data){
        log.info("=======访问了ok=====");
        return "giao!!";
    }

}
